package lambda;

import java.io.File;
import java.io.FileFilter;

public class LamdaDemo2 {
    public static void main(String[] args) {
        File dir=new File(".");
        if(dir.isDirectory()) {
            FileFilter filter = pathname ->pathname.getName().startsWith(".");
            File[] a=dir.listFiles(filter);
        }

    }
}
